# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-parsel
_pkgname=parsel
pkgver=1.8.1
pkgrel=0
pkgdesc="Library to extract data from HTML and XML using XPath and CSS selectors"
url="https://github.com/scrapy/parsel"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-cssselect py3-jmespath py3-lxml py3-w3lib py3-packaging"
makedepends="py3-setuptools py3-pytest-runner"
checkdepends="py3-pytest py3-sybil py3-psutil"
subpackages="$pkgname-pyc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/scrapy/parsel/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
3b930e6fa4989bc9301b14cffa946bdfaf23c922ac165d0748b4cb20c3c855c17b14b59eb92cb9d0e03e0a657e15d8aeb01434f024ba8c0936edaa05a289d770  parsel-1.8.1.tar.gz
"
